import React from 'react'

import Home from './pages/Home/index'
import CityList from './pages/CityList/index'
import Map from './pages/Map/index'

import { BrowserRouter as Router, Redirect, Route } from 'react-router-dom'

class App extends React.Component {
  render() {
    return (
      <div className="app">
        <Router>
          <Route exact path="/">
            <Redirect to="/home"></Redirect>
          </Route>
          <Route path="/home" component={Home}></Route>
          <Route path="/map" component={Map}></Route>
          <Route path="/citylist" component={CityList}></Route>
        </Router>
      </div>
    )
  }
}

export default App
